package com.sy.constant;

/**
 * 正则表达式常量类
 */
public class RegexConstant {
    /**
     * 属性描述: 正整数的正则
     */
    public static final String POSITIVE_INTEGER_REGEX = "^[1-9]\\d*$";
    /**
     * 属性描述: 负整数的正则
     */
    public static final String NEGATIVE_INTEGER_REGEX = "^-[1-9]\\d*$";
    /**
     * 属性描述: 用户名的正则
     */
    public static final String USER_NAME_REGEX = "^[a-zA-Z][a-zA-Z0-9_]{4,15}$";
    /**
     * 属性描述: 强密码的正则
     */
    public static final String STRONG_PWD_REGEX = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$";
    /**
     * 属性描述: 手机号的正则
     */
    public static final String PHONE_REGEX = "^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\\d{8}$";
}
